<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.7.0.min.js"></script>
		<script>
			$(function(){
				var div2 = $("<div>2</div>");
				//$("#con").append(div2);
				$("#con>div").before(div2);
			})
		</script>
	</head>
	<body>
		<div id="con">
			<div>1</div>
		</div>
	</body>
</html>